package com.dxf.hchat.service;

import com.dxf.hchat.pojo.TbChatRecord;

import java.util.List;

public interface ChatRecordService {
    void insert(TbChatRecord chatRecord);

    /**
     * 查找聊天记录
     * @param userid
     * @param friendId
     * @return
     */
    List<TbChatRecord> findByUserIdAndFriendId(String userid,String friendId);

    List<TbChatRecord> findUnreadByUserid(String userid);

    /**
     * netty收到签收消息后更新数据库数据为已读
     * @param id
     */
    void updateStatusHasRead(String id);
}
